package com.huarun.module.lift.service.Impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.huarun.common.BaseServiceImpl;
import com.huarun.module.lift.bean.LiftApply;
import com.huarun.module.lift.dao.LiftApplyMapper;
import com.huarun.module.lift.service.LiftApplyService;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class LiftApplyServiceImpl extends BaseServiceImpl<LiftApplyMapper, LiftApply>
  implements LiftApplyService
{

  @Resource
  private LiftApplyMapper applyMapper;

  public Map<String, Object> getLiftApplyId(Map<String, Object> map)
  {
    return this.applyMapper.getLiftApplyId(map);
  }

  public PageInfo<Map<String, Object>> getLiftApplyList(Map<String, Object> map, Integer page, Integer rows)
  {
    if (page == null) {
      page = Integer.valueOf(1);
    }
    if (rows == null) {
      rows = Integer.valueOf(10);
    }
    PageHelper.startPage(page.intValue(), rows.intValue());
    List liftList = this.applyMapper.getLiftApplyList(map);
    PageInfo pageInfo = new PageInfo(liftList);
    return pageInfo;
  }

  public int cancelLiftApply(Map<String, Object> map)
  {
    return this.applyMapper.cancelLiftApply(map);
  }
}

/* Location:           D:\msg\反编译\Webuilding-0.0.1-SNAPSHOT(5)\BOOT-INF\classes\
 * Qualified Name:     com.huarun.module.lift.service.Impl.LiftApplyServiceImpl
 * JD-Core Version:    0.6.2
 */